#include <iostream>
#include "epoll_server.hpp"
using namespace std;

int main(int argc, char* args[]) {
    if (argc != 2) {
        cout << "Usage:\n\t" << args[0] << "localport\n" << endl;
        return 0;
    }
    uint16_t port = stoi(args[1]);
    unique_ptr<EpollServer> epl(new EpollServer(port));
    // cout << "开始" << endl;
    epl->InitServer();
    // cout << "开始2" << endl;
    epl->Loop(); 
    return 0;
}